package com.cn.service.impl;

import com.cn.mapper.AdminMapper;
import com.cn.pojo.Admin;
import com.cn.pojo.User;
import com.cn.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:王宇航
 * @create: 2023-05-25 16:55
 * @Description:
 */
@Service
public class AdminServiceImpl implements AdminService {
@Autowired
private AdminMapper adminMapper;
    @Override
    public Admin findAdmin(Admin admin) {
        return adminMapper.findAdmin(admin);
    }

    @Override
    public int lock(int status, User user) {
        return adminMapper.lock(status, user);
    }
}
